package com.go.where.family.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.go.where.family.dao.CourseRetrospectDao;
import com.go.where.family.pojo.CourseRetrospectInfo;
import com.go.where.family.service.CourseRetrospectService;

@Service("courseRetrospectService")
public class CourseRetrospectServiceImpl implements CourseRetrospectService {

	@Resource(name = "courseRetrospectDao")
	private CourseRetrospectDao courseRetrospectDao;

	@Override
	public List<CourseRetrospectInfo> queryList(Map<String, Object> map) {
		return courseRetrospectDao.queryT(map);
	}

	@Override
	public CourseRetrospectInfo queryCourseDetail(String retroId) {
		CourseRetrospectInfo co = new CourseRetrospectInfo();
		co.setRetroId(retroId);
		return courseRetrospectDao.queryByPrimaryKey(co);
	}

}
